﻿using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Net.Mime;
using System.Web;
using System.Web.Mvc;
using FacialClub.Models.Entities;
using FacialClub.Helpers;

namespace FacialClub.Models.ViewModels
{
    /// <summary>
    /// Settings View Model
    /// </summary>
    public class SettingsViewModel
    {
    }
    /// <summary>
    /// Company Info View Model
    /// </summary>
    public class CompanyInfoViewModel
    {
        /// <summary>
        /// CompanyInfo
        /// </summary>
        public CompanyInfo CompanyInfo { get; private set; }

        /// <summary>
        /// Return TimeZones
        /// </summary>
        public SelectList TimeZonesList { get; private set; }

        /// <summary>
        /// Email Template Form View Model
        /// </summary>
        /// <param name="companyInfo"></param>
        public CompanyInfoViewModel(CompanyInfo companyInfo)
        {
            CompanyInfo = companyInfo;
            TimeZonesList = new SelectList(DateTimeExtensions.GetTimeZones(), companyInfo.TimeZone);

            //TimeZonesList = new SelectList(from p in TimeZoneInfo.GetSystemTimeZones()
            //                select new SelectListItem
            //                {
            //                    Text = p.DisplayName,
            //                    Value = p.Id
            //                });
        }

    }

}